﻿<%@ Page Title="Login to your Vortex Account" Language="C#" MasterPageFile="~/Master Page/MainMaster.Master"
    AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Vortex.User.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeadContent" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" runat="server">
    <asp:LoginView ID="LoginView1" runat="server">
        <AnonymousTemplate>
            <asp:Login ID="UserLogin1" runat="server" 
    CreateUserText="Create a Vortex Account" 
    CreateUserUrl="~/User/CreateAccount.aspx" Height="197px" Width="364px" 
    DestinationPageUrl="~/Default.aspx" >
                <ValidatorTextStyle CssClass="ErrorMsg" />
            </asp:Login>
        </AnonymousTemplate>
        <LoggedInTemplate>
            You are lo<%--<table width="500px">
        <tr>
            <td colspan="2" style="text-align: center; font-size: large">
                <h1>
                    Login to Vortex
                </h1>
            </td>
        </tr>
        <tr>
            <td class="style2">
                UserName:
            </td>
            <td>
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="Please enter your Username"
                    Text="*" CssClass="ErrorMsg" ControlToValidate="txtUserName" runat="server"
                    Display="Dynamic" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                Password:
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ErrorMessage="Please enter your Password"
                    Text="*" CssClass="ErrorMsg" ControlToValidate="txtPassword" runat="server"
                    Display="Dynamic" />
            </td>
        </tr>
        <tr>
            <td class="style1" colspan="2" style="text-align: center">
                <a href="CreateAccount.aspx">Don&#39;t have an account?</a>
                <asp:Button ID="btnLogin" runat="server" Text="Login" OnClick="btnLogin_Click" />
                <asp:Label ID="lblResult" Visible="False" Text="Incorrect Username Or Password" 
                    runat="server" CssClass="ErrorMsg"></asp:Label>
            </td>
        </tr>
    </table>--%>gged in.
        </LoggedInTemplate>
    </asp:LoginView>
</asp:Content>
